﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlatformUW.Entities.RequestFeatures
{
    public class SensorParameter : QueryStringParameters
    {
        public DateTime MinDateCreated { get; set; } = DateTime.MinValue;

        public DateTime MaxDateCreated { get; set; } = DateTime.MaxValue;

        public bool ValidateDateRange()
        {
            if (MinDateCreated > MaxDateCreated)
            {
                throw new ArgumentException("MinDateCreated cannot be greater than MaxDateCreated.");
            }
            return true;
        }

        public string? Name { get; set; }

        public string? QueryString { get; set; }

        public string? Fields { get; set; }
    }
}
